#ifndef __SCNS_DS18B20_H__
#define __SCNS_DS18B20_H__

#include "ScnsConfig.h"

#if defined(SCNS_DS18B20_ENABLE)&&SCNS_DS18B20_ENABLE==1

#include "ScnsYing.h"
#include "ScnsBspDs18b20.h"

typedef struct
{
    uint8 inited;
    float temperature;
}ScnsDs18b20Result;

extern ScnsDs18b20Result scnsDs18b20Result[SCNS_DS18B20_MAX];

extern ScnsStatus scnsDs18b20Init(ScnsDs18b20Enum ds1N);
extern void scnsDs18b20Interrupt(ScnsDs18b20Enum ds1N);
extern void scnsDs18b20Search(ScnsDs18b20Enum ds1N);
extern void scnsDs18b20SearchAll(void);
extern void scnsDs18b20PrintId(ScnsDs18b20Enum ds1N);
#endif
#endif
